package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableCaching                               //开启缓存注解功能
@SpringBootApplication                      //启动类
@Slf4j                                      //设置日志
@EnableTransactionManagement                //开启支持事务
@MapperScan("com.itheima.reggie.mapper")    //dao接口映射
public class AppWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppWebApplication.class,args);
        log.info("瑞吉App启动成功!");
    }
}
